/**
 * 
 */
package org.xlab.baseframework.web.images;

import java.io.InputStream;

import org.xlab.baseframework.system.PlatformDeclare;

import com.vaadin.terminal.StreamResource.StreamSource;

/**
 * @author MaKuBEX
 * 
 */
public enum ImageStreamSource implements StreamSource {
	ARCHITECTURE(PlatformDeclare.IMAGE_DIR_PATH + "/architecture.png");

	private String path;

	private ImageStreamSource(String path) {
		this.path = path;
	}

	/**
	 * @see com.vaadin.terminal.StreamResource.StreamSource#getStream()
	 */
	public InputStream getStream() {
		return this.getClass().getClassLoader().getResourceAsStream(this.path);
	}

}
